package com.gitee.cirnochat.user.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 好友关系表
 * @TableName friend
 */
@TableName(value ="friend")
@Data
public class Friend implements Serializable {
    /**
     * 主键ID
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 用户ID
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 对方好友ID
     */
    @TableField(value = "friend_id")
    private Long friendId;

    /**
     * 备注名
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 加好友时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新好友信息时间
     */
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}